package ee.subjects.backend.services;

import java.util.List;

import ee.subjects.backend.model.data.Ent_per_relation_type;
import ee.subjects.backend.model.data.Enterprise_person_relation;

public interface Enterprise_person_relation_Service 
{
	public Enterprise_person_relation addNewRelationWithPerson(int enterpriseId, int personId, int enterprise_person_relation_typeId);
	public Enterprise_person_relation getEnterprise_person_relationById(int enterprise_person_relationId);
	public List<Enterprise_person_relation> getAllSpecificEnterpriseAndSpecificPersonRelations(int enterpriseId, int personId);
	public List<Enterprise_person_relation> getAllEnterprisePersonRelationsThatSpecificEnterpriseHas(int enterpriseId);
	public List<Enterprise_person_relation> getAllEnterprisePersonRelationsThatSpecificPersonHas(int personId);
	public boolean updateEnterprise_person_relation(Enterprise_person_relation updatedEnterprise_person_relationObject);
	public boolean deleteEnterprise_person_relationById(int ent_per_relationId);
	public boolean deleteAllEnterprisePersonRelationsByEnterpriseId(int enterpriseId);
	
	public Ent_per_relation_type getEnt_per_relation_typeById(int ent_per_relation_typeId);
	public List<Ent_per_relation_type> getAllEnterprise_person_relation_types();
}
